package models;

import java.io.Serializable;

@SuppressWarnings("serial")
public class ProfitBySaler implements Serializable {

	private String salername = "";
	private int displayGP = 0;
	private int realGP = 0;
	private double rate = 0;

	public String getSalername() {
		return salername;
	}

	public void setSalername(String salername) {
		this.salername = salername;
	}

	public int getDisplayGP() {
		return displayGP;
	}

	public void setDisplayGP(int displayGP) {
		this.displayGP = displayGP;
	}

	public int getRealGP() {
		return realGP;
	}

	public void setRealGP(int realGP) {
		this.realGP = realGP;
	}

	public double getRate() {
		if (displayGP > 0) {
			rate = new Double((realGP)) / new Double(displayGP);
		} else {
			rate = 0;
		}
		return rate;
	}

	public void setRate(double rate) {
		this.rate = rate;
	}

}
